//
//  ViewController.m
//  LGSliderDrawer
//
//  Created by apple on 2021/3/24.
//

#import "ViewController.h"

#import "LGSliderDrawerManager.h"

@interface ViewController ()
@property (nonatomic, strong) LGSliderDrawerManager *drawerManager;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
        
    CGRect rect = CGRectMake(0, 0, kScreenWidth *0.4, kScreenHeight);
    UIView *view = [[UIView alloc] initWithFrame:rect];
    view.backgroundColor = [UIColor whiteColor];
    
    LGSliderDrawerConfigure *configure = [[LGSliderDrawerConfigure alloc] initWithDistance:0.4 maskAlpha:0.3 direction:LGSliderDrawerTransitionDirectionRight gestureType:LGSliderDrawerGestureTypePan];
    self.drawerManager = [[LGSliderDrawerManager alloc] init];
    [self.drawerManager showDrawerRightView:view superView:self.view gestureView:self.view configuration:configure];
}


@end
